Optimal. Leaf size=34 \[ \frac {(B-C) \sin (c+d x)}{d (a \cos (c+d x)+a)}+\frac {C x}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.12, antiderivative size = 34, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 38, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.079, Rules used = {3029, 2735, 2648} \[ \frac {(B-C) \sin (c+d x)}{d (a \cos (c+d x)+a)}+\frac {C x}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2648
Rule 2735
Rule 3029
Rubi steps
\begin {align*} \int \frac {\left (B \cos (c+d x)+C \cos ^2(c+d x)\right ) \sec (c+d x)}{a+a \cos (c+d x)} \, dx &=\int \frac {B+C \cos (c+d x)}{a+a \cos (c+d x)} \, dx\\ &=\frac {C x}{a}-(-B+C) \int \frac {1}{a+a \cos (c+d x)} \, dx\\ &=\frac {C x}{a}+\frac {(B-C) \sin (c+d x)}{d (a+a \cos (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.12, size = 72, normalized size = 2.12 \[ \frac {\sec \left (\frac {c}{2}\right ) \cos \left (\frac {1}{2} (c+d x)\right ) \left (2 (B-C) \sin \left (\frac {d x}{2}\right )+C d x \cos \left (c+\frac {d x}{2}\right )+C d x \cos \left (\frac {d x}{2}\right )\right )}{a d (\cos (c+d x)+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.47, size = 43, normalized size = 1.26 \[ \frac {C d x \cos \left (d x + c\right ) + C d x + {\left (B - C\right )} \sin \left (d x + c\right )}{a d \cos \left (d x + c\right ) + a d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.37, size = 43, normalized size = 1.26 \[ \frac {\frac {{\left (d x + c\right )} C}{a} + \frac {B \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - C \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{a}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.17, size = 56, normalized size = 1.65 \[ \frac {B \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{a d}+\frac {2 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right ) C}{a d}-\frac {C \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{a d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.96, size = 73, normalized size = 2.15 \[ \frac {C {\left (\frac {2 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a} - \frac {\sin \left (d x + c\right )}{a {\left (\cos \left (d x + c\right ) + 1\right )}}\right )} + \frac {B \sin \left (d x + c\right )}{a {\left (\cos \left (d x + c\right ) + 1\right )}}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.06, size = 30, normalized size = 0.88 \[ \frac {\frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (B-C\right )}{a}+\frac {C\,d\,x}{a}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {B \cos {\left (c + d x \right )} \sec {\left (c + d x \right )}}{\cos {\left (c + d x \right )} + 1}\, dx + \int \frac {C \cos ^{2}{\left (c + d x \right )} \sec {\left (c + d x \right )}}{\cos {\left (c + d x \right )} + 1}\, dx}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________